xen/arm: Add relinquish_p2m_mapping to remove reference on every mapped page
authorJulien Grall <julien.grall@linaro.org>
Tue, 17 Dec 2013 16:27:56 +0000 (16:27 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 18 Dec 2013 14:32:48 +0000 (14:32 +0000)
commit84f29a98dc31fcf4a6bbf380601f4b3651c761f8
tree2f3829f229cff34af70cc80873c6b728ab14308e
parent9486a8d07ba8d8385d7902fbc815f5e257da13df
xen/arm: Add relinquish_p2m_mapping to remove reference on every mapped page

This function will be called when the domain relinquishes its memory.
It removes refcount on every mapped page to a valid MFN.

Currently, Xen doesn't take reference on every new mapping but only for foreign
mapping. Restrict the function only on foreign mapping.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/domain.c
xen/arch/arm/p2m.c
xen/include/asm-arm/domain.h
xen/include/asm-arm/p2m.h